﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ch04Ex01
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter an integer:");
            int myInt = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("left shift {0} << 2 = {1}", myInt, myInt << 2);
            Console.WriteLine("right shift {0} >> 2 = {1}", myInt, myInt >> 2);
            goto aa1;
            bool isLessThan10 = myInt < 10;
            bool isBetween0And5 = (0 <= myInt) && (myInt <= 5);
            Console.WriteLine("Integer less than 10? {0}", isLessThan10);
            Console.WriteLine("Integer between 0 and 5? {0}", isBetween0And5);
            Console.WriteLine("Exactly one of the above is true? {0}",
                    isLessThan10 ^ isBetween0And5);
        aa1:
            Console.ReadKey();
        }
    }
}
